package com.baidu.location;

import android.os.Handler;
import android.os.Message;
import android.telephony.CellLocation;
import android.telephony.PhoneStateListener;
import android.telephony.SignalStrength;
import android.telephony.TelephonyManager;

final class v extends PhoneStateListener
{
  public final void onCellLocationChanged(CellLocation paramCellLocation)
  {
    if (paramCellLocation == null)
      return;
    try
    {
      t.a(this.a, t.c(this.a).getCellLocation());
      return;
    }
    catch (java.lang.Exception paramCellLocation)
    {
    }
  }

  public final void onSignalStrengthsChanged(SignalStrength paramSignalStrength)
  {
    if (t.a(this.a) != null)
      if (t.a(this.a).g != 'g')
        break label91;
    for (t.a(this.a).f = paramSignalStrength.getGsmSignalStrength(); ; t.a(this.a).f = paramSignalStrength.getCdmaDbm())
      do
      {
        new StringBuilder("===== cell singal strength changed : ").append(t.a(this.a).f);
        ak.e();
        if (t.d(this.a) != null)
          t.d(this.a).obtainMessage(31).sendToTarget();
        label91: return;
      }
      while (t.a(this.a).g != 'c');
  }
}